<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../base.jsp" %>

	<!-- head开始 -->
	<div id="hd">
    	<div class="wp">
        	<div class="hdc">
            	<div class="hd_bg_x">
                	<div id="hd_rt">
                        <span class="e_topmenu">
                        </span>
                        <h2>
                            <a href="index.jspx" title="编程之友BBS"></a>
                        </h2>
                        <div id="e_nv">
                            <div class="new_topbar">
                            	<div class="y">
                            		<form action="search.jspx" method="post">
                            			<input id="srchtxt" type="text" class="px z" name="s_content" style="border: 1px solid #2A81BD; margin-top:9px"/>
                            			<button id="search_submit" name="searchsubmit" type="submit" value="true" class="xw1">搜索</button>
                            		</form>
                            	</div>
                                <span class="new_topbar_left">
                                <c:choose>
                                	<c:when test="${not empty user}">
                                欢迎您！ ${user.username } <a href="user.jspx?_method=quit">[安全退出]</a>　
                                <a href="index.jspx?_method=usercenter">个人中心</a>
                                	</c:when>
                                	<c:when test="${not empty manager}">
                                欢迎您！管理员： ${manager.username } <a href="user.jspx?_method=quit">[安全退出]</a>                          
                                    </c:when>
                                    
                                    <c:otherwise>
                                    <a href="index.jspx?_method=register">注册</a>
                                    <span class="pipe" style="margin: 0 5px;"> | </span>
                                    <a href="index.jspx?_method=login">登陆</a>
                                    </c:otherwise>
                                </c:choose>
                                </span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
	<!-- head结束 -->
